package com.ftg.learn.framework.mybatis.annotation;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * 接口
 *
 * @author kangjx
 * @version 1.0
 * @date 2023/9/5 下午2:22
 */
public interface Student {

    @Select("select * from j2305.student")
    List<Map<String,Object>> show();


    @Select("select * from j2305.student where stu_name=#{name}")
    List<Map<String,Object>> showName(@Param("name") String name);
}
